﻿using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

[RequireComponent(typeof(TextMeshProUGUI))]
public class AddMoney : MonoBehaviour
{
    public static int addMoney = 0;
    public TextMeshProUGUI text;

    void Start()
    {

    }

    void OnEnable()
    {
        if (text == null) text = GetComponent<TextMeshProUGUI>();
        text.text = "获得 <sprite=0> X " + addMoney;
    }

    // Update is called once per frame
    void Update()
    {

    }
}
